package com.wins.contact.domain;

import com.wins.contact.domain.Contact;
import java.lang.Long;

privileged aspect Contact_Roo_Entity {
    
    public static long Contact.countContacts() {
        return (Long) entityManager().createQuery("select count(o) from Contact o").getSingleResult();
    }
    
    public static Contact Contact.findContact(Long id) {
        if (id == null) return null;
        return entityManager().find(Contact.class, id);
    }
    
}
